//
//  SMSRequest.m
//  SulitLoan
//
//  Created by 虞嘉伟 on 2025/2/26.
//

#import "LocationRequest.h"

@implementation LocationRequest

- (YTKRequestMethod)requestMethod {
    return YTKRequestMethodPOST;
}

- (NSString *)requestUrl {
    return [self requestEncodingUrl:@"/sulitloanapi/slu/would"];
}

- (id)requestArgument {
    // 纬度
    double latitude = [NSUserDefaults.standardUserDefaults doubleForKey:@"latitude"];
    // 经度
    double longitude = [NSUserDefaults.standardUserDefaults doubleForKey:@"longitude"];
    NSDictionary *dict = @{
        @"paralyzed": self.paralyzed ?: @"",
        @"witticisms": self.witticisms ?: @"",
        @"happiest": self.happiest ?: @"",
        @"nicknames": self.nicknames ?: @"",
        @"jests": @(latitude) ?: @"",
        @"hours": @(longitude) ?: @"",
        @"portion": self.portion ?: @"",
        @"anew": @"anew",
        @"comprehend": @"comprehend",
    };
    return dict;
}

@end
